package com.kingyea.mobilepolice.userrole.service;

import com.kingyea.mobilepolice.userrole.bean.UserRole;
import com.kingyea.mobilepolice.userrole.bean.UserRoleCondition;

import java.util.List;

/**
 * @author Mr.Lin
 * @version v1.0.0
 * @description UserRole 接口
 * @date Created in 2018-03-30 15:30:02
 */
public interface UserRoleService {

    /**
     * 通过ID查找对象
     *
     * @param id
     * @return
     */
    UserRole getById(Integer id) throws Exception;

    /**
     * 列表
     *
     * @param condition
     * @return
     */
    List<UserRole> search(UserRoleCondition condition) throws Exception;

    /**
     * 删除
     *
     * @param id
     * @return
     */
    int deleteById(Integer id) throws Exception;

    /**
     * 添加
     *
     * @param userRole
     * @return
     */
    UserRole save(UserRole userRole) throws Exception;

    /**
     * 更新
     *
     * @param userRole
     * @return
     */
    UserRole update(UserRole userRole) throws Exception;
}
